all:discovery registry
discovery:discovery.cc ../main.pb.cc
	g++ -o $@ $^ -std=c++17 -lspdlog -lfmt -lgflags -letcd-cpp-api -lcpprest -lbrpc -lleveldb -lssl -lcrypto -lprotobuf -ldl -pthread
registry:registry.cc ../main.pb.cc
	g++ -o $@ $^ -std=c++17 -lspdlog -lfmt -lgflags -letcd-cpp-api -lcpprest -lbrpc -lleveldb -lssl -lcrypto -lprotobuf -ldl -pthread
.PHONY:clean
clean:
	rm -f discovery registry